#include "mainwindow.h"
#include <QApplication>
#include <aerosolwidget.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    AerosolWidget aerosol(&w);
    QPushButton * b1 = new QPushButton("1");
    QPushButton * b2 = new QPushButton("2");
    QPushButton * b3 = new QPushButton("3");
    QPushButton * b4 = new QPushButton("4");
    QPushButton * b5 = new QPushButton("5");
    QPushButton * b6 = new QPushButton("6");
    QList<QPushButton*> l;
    l<<b1<<b2<<b3<<b4<<b5;
    aerosol.setDirection(AerosolWidget::DOWN);
    aerosol.setSubButtons(l);
    aerosol.setPos(100);
    aerosol.setDuration(100);
    aerosol.showCenter();
    w.show();
    return a.exec();
}
